package com.erp.order.purchasing.model;

import com.erp.hr.base.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * 询价单供应商 实体类
 * @Author: syz
 * @blame syz
 * @CreateTime: 2021/4/6
 */
@Data
@Entity
@DynamicInsert()
@DynamicUpdate()
@EqualsAndHashCode(callSuper = true)
@Table(name="inquiry_list_supplier", schema="erp")
public class InquiryListSupplier extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 询价单id
     */
    @Column(name = "inquiry_list_id")
    private Long inquiryListId;

    /**
     * 供应商id
     */
    @Column(name = "supplier_id")
    private Long supplierId;

    /**
     * 供应商所属公司
     */
    @Column(name = "company")
    private String company;

    /**
     * 供应商名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 供应商类型
     */
    @Column(name = "type")
    private String type;

    /**
     * 供应商电话
     */
    @Column(name = "tel")
    private String tel;

    /**
     * 供应商地址
     */
    @Column(name = "address")
    private String address;

    /**
     * 注册资金
     */
    @Column(name = "registe_capital")
    private String registeCapital;

    /**
     * 报价金额
     */
    @Column(name = "bid_amount")
    private BigDecimal bidAmount;

    /**
     * 最低报价数
     */
    @Transient
    private Integer minNum;

    @Transient
    private String vendor_id;

}